import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import Components from "unplugin-vue-components/vite";
import { VantResolver } from "unplugin-vue-components/resolvers";
import basicSsl from '@vitejs/plugin-basic-ssl'
// https://vitejs.dev/config/
export default defineConfig({
  base: "/viteApp/", // 应用的基路径，影响资源和路由的基准URL
  server: {
    port: 8089,
    // host: '192.168.0.105',
    // open: true,
  },
  plugins: [vue(), Components({ resolvers: [VantResolver()] }),basicSsl()],
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", import.meta.url)),
    },
  },
});
